import apiUrl from "../base";
import axios from '@/libs/axios';
const standardLibrary = {
  //添加
  getProfessionalTypeAdd(prames) {
    return axios.post(`${apiUrl.base}v1/ProfessionalType/add`,prames)
  },
  //编辑
  getProfessionalTypeEditor(prames) {
    return axios.post(`${apiUrl.base}v1/ProfessionalType/edit`,prames)
  },
  //code
  getProfessionalTypecodeGenerate(dictEngineeringType,parentId) {
    return axios.post(`${apiUrl.base}v1/ProfessionalType/codeGenerate/${dictEngineeringType}/${parentId}`,'')
  },
  //详情(需求没详情 但要从操作日志过来 所有必须要有详情)
  getProfessionalTypedetail(id) {
    return axios.get(`${apiUrl.base}v1/ProfessionalType/detail/${id}`,'')
  },
  //delete
  getProfessionalTypeDelete(data) {
    return axios.post(`${apiUrl.base}v1/ProfessionalType/batchDelete`,data)
  },
  //导入
  getProfessionalTypeImportExcel(data) {
    return axios.post(`${apiUrl.base}v1/ProfessionalType/importExcel`,data)
  },
  //错误数据再次保存
  getProfessionalTypeimportObject(data) {
    return axios.post(`${apiUrl.base}v1/ProfessionalType/importObject`,data)
  },

}
export default standardLibrary
